package universe.unit.ship;

import java.util.BitSet;

import universe.unit.Coordinated;
import universe.unit.ship.parts.ComLink;
import universe.unit.ship.parts.CommandLink;
import universe.unit.ship.parts.Engine;
import universe.unit.ship.parts.Hull;
import universe.unit.ship.parts.Sensor;
import universe.unit.ship.parts.Weapon;
import universe.unit.ship.parts.Missile;

public class Ship implements Coordinated{

	//ID thing
	
	String name;
	
	int[] coordinates;
	
	float hp;
	float movement;
	
	/** server maintained bitarray keeping track of which player sees the ship **/
	BitSet visibility;
	/** client used integer to filter out information based on the visibility level **/
	int visibilityLevel;
	
	Engine[] engines;
	Hull hull;
	Sensor[] sensors;
	ComLink coms;
	CommandLink[] cmds;
	Weapon[] weapons;
	Missile[] missiles;
	
	
	public int[] getCoord() {
		return coordinates;
	}
	
	public void setCoord(int x, int y){
		coordinates[0]=x;
		coordinates[1]=y;
	}
	
	public void nextTurn(){
		engineReset();
	}
	
	public void engineReset(){

	}
	
	
	
}
